package router

import (
	"LearnProject/controllers"
	"LearnProject/core"
)

func Setup() *core.HttpRouter {
	copyrouter := core.NewRouter()


	copyrouter.GET("/sayHi",controllers.Index)
	copyrouter.GET("/posts",controllers.PostItem)
	copyrouter.GET("/post/list", controllers.PostList)
	copyrouter.POST("/post/delete", controllers.PostDelete)
	copyrouter.POST("/post/save", controllers.PostSave)
	copyrouter.POST("/post/data", controllers.PostIndex)
	copyrouter.GET("/code", controllers.GetCode)

	return copyrouter
}